home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / GZIP107S.ZIP;1 / GZIP107.TAR / gzip-1.0.7 / configure < prev    next >
Encoding:
Text File  |  1993-03-17  |  16.3 KB  |  675 lines

  1. #!/bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf.
  4. # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  5.  
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10.  
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15.  
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp] [--no-create]
  21. #        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE] [TARGET]
  22. # Ignores all args except --srcdir, --prefix, --exec-prefix, --no-create, and
  23. # --with-PACKAGE unless this script has special code to handle it.
  24.  
  25.  
  26. for arg
  27. do
  28.   # Handle --exec-prefix with a space before the argument.
  29.   if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  30.   # Handle --host with a space before the argument.
  31.   elif test x$next_host = xyes; then next_host=
  32.   # Handle --prefix with a space before the argument.
  33.   elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  34.   # Handle --srcdir with a space before the argument.
  35.   elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  36.   else
  37.     case $arg in
  38.      # For backward compatibility, also recognize exact --exec_prefix.
  39.      -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  40.     exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  41.      -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  42.     next_exec_prefix=yes ;;
  43.  
  44.      -gas | --gas | --ga | --g) ;;
  45.  
  46.      -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  47.      -host | --host | --hos | --ho | --h)
  48.     next_host=yes ;;
  49.  
  50.      -nfp | --nfp | --nf) ;;
  51.  
  52.      -no-create | --no-create | --no-creat | --no-crea | --no-cre | --no-cr | --no-c | --no- | --no)
  53.         no_create=1 ;;
  54.  
  55.      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  56.     prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  57.      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  58.     next_prefix=yes ;;
  59.  
  60.      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  61.     srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  62.      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  63.     next_srcdir=yes ;;
  64.  
  65.      -with-* | --with-*)
  66.        package=`echo $arg|sed 's/-*with-//'`
  67.        # Delete all the valid chars; see if any are left.
  68.        if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then
  69.          echo "configure: $package: invalid package name" >&2; exit 1
  70.        fi
  71.        eval "with_`echo $package|sed s/-/_/g`=1" ;;
  72.  
  73.      *) ;;
  74.     esac
  75.   fi
  76. done
  77.  
  78. trap 'rm -f conftest* core; exit 1' 1 3 15
  79.  
  80. rm -f conftest*
  81. compile='${CC-cc} $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  82.  
  83. # A filename unique to this package, relative to the directory that
  84. # configure is in, which we can look for to find out if srcdir is correct.
  85. unique_file=gzip.c
  86.  
  87. # Find the source files, if location was not specified.
  88. if test -z "$srcdir"; then
  89.   srcdirdefaulted=yes
  90.   # Try the directory containing this script, then `..'.
  91.   prog=$0
  92.   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  93.   test "X$confdir" = "X$prog" && confdir=.
  94.   srcdir=$confdir
  95.   if test ! -r $srcdir/$unique_file; then
  96.     srcdir=..
  97.   fi
  98. fi
  99. if test ! -r $srcdir/$unique_file; then
  100.   if test x$srcdirdefaulted = xyes; then
  101.     echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  102.   else
  103.     echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  104.   fi
  105.   exit 1
  106. fi
  107. # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  108. # But we can't avoid them for `..', to make subdirectories work.
  109. case $srcdir in
  110.   .|/*|~*) ;;
  111.   *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  112. esac
  113.  
  114. if test -z "$CC"; then
  115.   echo checking for gcc
  116.   saveifs="$IFS"; IFS="${IFS}:"
  117.   for dir in $PATH; do
  118.     test -z "$dir" && dir=.
  119.     if test -f $dir/gcc; then
  120.       CC="gcc"
  121.       break
  122.     fi
  123.   done
  124.   IFS="$saveifs"
  125. fi
  126. test -z "$CC" && CC="cc"
  127.  
  128. # Find out if we are using GNU C, under whatever name.
  129. cat > conftest.c <<EOF
  130. #ifdef __GNUC__
  131.   yes
  132. #endif
  133. EOF
  134. ${CC-cc} -E conftest.c > conftest.out 2>&1
  135. if egrep yes conftest.out >/dev/null 2>&1; then
  136.   GCC=1 # For later tests.
  137.   CC="$CC -O"
  138. fi
  139. rm -f conftest*
  140.  
  141. echo checking for underline in external names
  142. test -z "$CPP" -a -f /lib/cpp && CPP=/lib/cpp
  143. test -z "$CPP" && CPP="$CC -E"
  144. cat > conftest.c <<EOF
  145. int foo() {return 0;}
  146. EOF
  147. $CC -c conftest.c > /dev/null 2>&1
  148. if nm conftest.o | grep _foo > /dev/null 2>&1 ; then
  149.   :
  150. else
  151.   CPP="${CPP} -DNO_UNDERLINE"
  152. fi
  153. echo checking for assembler
  154. rm -f _match.o conftest.co
  155. $CPP $srcdir/match.S > _match.s
  156. if grep error < _match.s > /dev/null; then
  157.   OBJA=""
  158. elif $CC -c _match.s >/dev/null 2>&1 && test -f _match.o; then
  159.   DEFS="${DEFS} -DASMV"
  160.   OBJA=match.o
  161. fi
  162. rm -f _match.s _match.o
  163. # Make sure to not get the incompatible SysV /etc/install and
  164. # /usr/sbin/install, which might be in PATH before a BSD-like install,
  165. # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  166. # or the AFS install, which mishandles nonexistent args.  (Sigh.)
  167. if test -z "$INSTALL"; then
  168.   echo checking for install
  169.   saveifs="$IFS"; IFS="${IFS}:"
  170.   for dir in $PATH; do
  171.     test -z "$dir" && dir=.
  172.     case $dir in
  173.     /etc|/usr/sbin|/usr/etc|/usr/afsws/bin) ;;
  174.     *)
  175.       if test -f $dir/install; then
  176.     if grep dspmsg $dir/install >/dev/null 2>&1; then
  177.       : # AIX
  178.     else
  179.       INSTALL="$dir/install -c"
  180.       INSTALL_PROGRAM='$(INSTALL)'
  181.       INSTALL_DATA='$(INSTALL) -m 644'
  182.       break
  183.     fi
  184.       fi
  185.       ;;
  186.     esac
  187.   done
  188.   IFS="$saveifs"
  189. fi
  190. INSTALL=${INSTALL-cp}
  191. INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  192. INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  193.  
  194. echo checking for AIX
  195. echo checking how to run the C preprocessor
  196. if test -z "$CPP"; then
  197.   CPP='${CC-cc} -E'
  198.   cat > conftest.c <<EOF
  199. #include <stdio.h>
  200. EOF
  201. err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  202. if test -z "$err"; then
  203.   :
  204. else
  205.   CPP=/lib/cpp
  206. fi
  207. rm -f conftest*
  208. fi
  209.  
  210. cat > conftest.c <<EOF
  211. #ifdef _AIX
  212.   yes
  213. #endif
  214.  
  215. EOF
  216. eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  217. if egrep "yes" conftest.out >/dev/null 2>&1; then
  218.   DEFS="$DEFS -D_ALL_SOURCE=1"
  219. fi
  220. rm -f conftest*
  221.  
  222.  
  223. echo checking for minix/config.h
  224. cat > conftest.c <<EOF
  225. #include <minix/config.h>
  226. EOF
  227. err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  228. if test -z "$err"; then
  229.   MINIX=1
  230. fi
  231. rm -f conftest*
  232.  
  233. # The Minix shell can't assign to the same variable on the same line!
  234. if test -n "$MINIX"; then
  235.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  236.   DEFS="$DEFS -D_POSIX_1_SOURCE=2"
  237.   DEFS="$DEFS -D_MINIX=1"
  238. fi
  239.  
  240. echo checking for POSIXized ISC
  241. if test -d /etc/conf/kconfig.d &&
  242.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  243. then
  244.   ISC=1 # If later tests want to check for ISC.
  245.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  246.   if test -n "$GCC"; then
  247.     CC="$CC -posix"
  248.   else
  249.     CC="$CC -Xp"
  250.   fi
  251. fi
  252.  
  253. echo checking for DYNIX/ptx libseq
  254. cat > conftest.c <<EOF
  255. #if defined(_SEQUENT_)
  256.   yes
  257. #endif
  258.  
  259. EOF
  260. eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  261. if egrep "yes" conftest.out >/dev/null 2>&1; then
  262.   SEQUENT=1
  263. fi
  264. rm -f conftest*
  265.  
  266. test -n "$SEQUENT" && test -f /usr/lib/libseq.a &&
  267.   LIBS="$LIBS -lseq"
  268.  
  269. echo checking for ANSI C header files
  270. cat > conftest.c <<EOF
  271. #include <stdlib.h>
  272. #include <stdarg.h>
  273. #include <string.h>
  274. #include <float.h>
  275. EOF
  276. err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  277. if test -z "$err"; then
  278.   # SunOS string.h does not declare mem*, contrary to ANSI.
  279. echo '#include <string.h>' > conftest.c
  280. eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  281. if egrep "memchr" conftest.out >/dev/null 2>&1; then
  282.   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  283. cat > conftest.c <<EOF
  284. #include <ctype.h>
  285. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  286. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  287. #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  288. int main () { int i; for (i = 0; i < 256; i++)
  289. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  290. exit (0); }
  291.  
  292. EOF
  293. eval $compile
  294. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  295.   DEFS="$DEFS -DSTDC_HEADERS=1"
  296. fi
  297. rm -f conftest*
  298. fi
  299. rm -f conftest*
  300.  
  301. fi
  302. rm -f conftest*
  303.  
  304. echo checking for string.h
  305. cat > conftest.c <<EOF
  306. #include <string.h>
  307. EOF
  308. err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  309. if test -z "$err"; then
  310.   :
  311. else
  312.   DEFS="$DEFS -DNO_STRING_H=1"
  313. fi
  314. rm -f conftest*
  315.  
  316. echo checking for stdlib.h
  317. cat > conftest.c <<EOF
  318. #include <stdlib.h>
  319. EOF
  320. err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  321. if test -z "$err"; then
  322.   :
  323. else
  324.   DEFS="$DEFS -DNO_STDLIB_H=1"
  325. fi
  326. rm -f conftest*
  327.  
  328. echo checking for memory.h
  329. cat > conftest.c <<EOF
  330. #include <memory.h>
  331. EOF
  332. err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  333. if test -z "$err"; then
  334.   :
  335. else
  336.   DEFS="$DEFS -DNO_MEMORY_H=1"
  337. fi
  338. rm -f conftest*
  339.  
  340. echo checking for fcntl.h
  341. cat > conftest.c <<EOF
  342. #include <fcntl.h>
  343. EOF
  344. err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  345. if test -z "$err"; then
  346.   :
  347. else
  348.   DEFS="$DEFS -DNO_FCNTL_H=1"
  349. fi
  350. rm -f conftest*
  351.  
  352. for hdr in unistd.h
  353. do
  354. trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  355. echo checking for ${hdr}
  356. cat > conftest.c <<EOF
  357. #include <${hdr}>
  358. EOF
  359. err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  360. if test -z "$err"; then
  361.   DEFS="$DEFS -D${trhdr}=1"
  362. fi
  363. rm -f conftest*
  364. done
  365.  
  366. utime=0
  367. echo checking for utime.h
  368. cat > conftest.c <<EOF
  369. #include <utime.h>
  370. EOF
  371. err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  372. if test -z "$err"; then
  373.   utime=1 
  374. else
  375.   DEFS="$DEFS -DNO_UTIME_H=1"
  376. fi
  377. rm -f conftest*
  378.  
  379. if test $utime -eq 0; then
  380.   for hdr in sys/utime.h
  381. do
  382. trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  383. echo checking for ${hdr}
  384. cat > conftest.c <<EOF
  385. #include <${hdr}>
  386. EOF
  387. err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  388. if test -z "$err"; then
  389.   DEFS="$DEFS -D${trhdr}=1"
  390. fi
  391. rm -f conftest*
  392. done
  393.  
  394. fi
  395. echo checking for directory library header
  396. echo checking for dirent.h
  397. cat > conftest.c <<EOF
  398. #include <sys/types.h>
  399. #include <dirent.h>
  400. int main() { return 0; } 
  401. int t() { DIR *x=0; return x-x; }
  402. EOF
  403. if eval $compile; then
  404.   DEFS="$DEFS -DDIRENT=1" dirheader=dirent.h
  405. fi
  406. rm -f conftest*
  407.  
  408. if test -z "$dirheader"; then
  409. echo checking for sys/ndir.h
  410. cat > conftest.c <<EOF
  411. #include <sys/ndir.h>
  412. EOF
  413. err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  414. if test -z "$err"; then
  415.   DEFS="$DEFS -DSYSNDIR=1" dirheader=sys/ndir.h
  416. fi
  417. rm -f conftest*
  418.  
  419. fi
  420. if test -z "$dirheader"; then
  421. echo checking for sys/dir.h
  422. cat > conftest.c <<EOF
  423. #include <sys/dir.h>
  424. EOF
  425. err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  426. if test -z "$err"; then
  427.   DEFS="$DEFS -DSYSDIR=1" dirheader=sys/dir.h
  428. fi
  429. rm -f conftest*
  430.  
  431. fi
  432. if test -z "$dirheader"; then
  433. echo checking for ndir.h
  434. cat > conftest.c <<EOF
  435. #include <ndir.h>
  436. EOF
  437. err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"`
  438. if test -z "$err"; then
  439.   DEFS="$DEFS -DNDIR=1" dirheader=ndir.h
  440. fi
  441. rm -f conftest*
  442.  
  443. fi
  444.  
  445. echo checking for closedir return value
  446. cat > conftest.c <<EOF
  447. #include <sys/types.h>
  448. #include <$dirheader>
  449. int closedir(); main() { exit(0); }
  450. EOF
  451. eval $compile
  452. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  453.   :
  454. else
  455.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  456. fi
  457. rm -f conftest*
  458.  
  459. echo checking for Xenix
  460. cat > conftest.c <<EOF
  461. #if defined(M_XENIX) && !defined(M_UNIX)
  462.   yes
  463. #endif
  464.  
  465. EOF
  466. eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  467. if egrep "yes" conftest.out >/dev/null 2>&1; then
  468.   XENIX=1
  469. fi
  470. rm -f conftest*
  471.  
  472. if test -n "$XENIX"; then
  473.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  474.   LIBS="$LIBS -lx"
  475.   case "$DEFS" in
  476.   *SYSNDIR*) ;;
  477.   *) LIBS="-ldir $LIBS" ;; # Make sure -ldir precedes any -lx.
  478.   esac
  479. fi
  480.  
  481. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  482. # for constant arguments.  Useless!
  483. echo checking for working alloca.h
  484. cat > conftest.c <<EOF
  485. #include <alloca.h>
  486. int main() { return 0; } 
  487. int t() { char *p = alloca(2 * sizeof(int)); }
  488. EOF
  489. if eval $compile; then
  490.   DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  491. fi
  492. rm -f conftest*
  493.  
  494. decl="#ifdef __GNUC__
  495. #define alloca __builtin_alloca
  496. #else
  497. #if HAVE_ALLOCA_H
  498. #include <alloca.h>
  499. #else
  500. #ifdef _AIX
  501.  #pragma alloca
  502. #else
  503. char *alloca ();
  504. #endif
  505. #endif
  506. #endif
  507. "
  508. echo checking for alloca
  509. cat > conftest.c <<EOF
  510. $decl
  511. int main() { return 0; } 
  512. int t() { char *p = (char *) alloca(1); }
  513. EOF
  514. if eval $compile; then
  515.   :
  516. else
  517.   alloca_missing=1
  518. fi
  519. rm -f conftest*
  520.  
  521. if test -n "$alloca_missing"; then
  522.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  523.   # that cause trouble.  Some versions do not even contain alloca or
  524.   # contain a buggy version.  If you still want to use their alloca,
  525.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  526.   ALLOCA=alloca.o
  527. fi
  528.  
  529. echo checking for return type of signal handlers
  530. cat > conftest.c <<EOF
  531. #include <sys/types.h>
  532. #include <signal.h>
  533. #ifdef signal
  534. #undef signal
  535. #endif
  536. extern int (*signal ()) ();
  537. int main() { return 0; } 
  538. int t() { int i; }
  539. EOF
  540. if eval $compile; then
  541.   DEFS="$DEFS -DRETSIGTYPE=int"
  542. fi
  543. rm -f conftest*
  544.  
  545.  
  546. echo "checking for #! kernel hack"
  547. cat <<'__EOF__' > conftest.csh
  548. #!/bin/csh -f
  549. setenv SHELL /bin/csh
  550. # Avoid tcsh bug 'Bad Hertz Value':
  551. setenv HZ 60
  552. # Make sure foo doesn't get exported into the environment
  553. # Astoundingly, some versions of csh don't have unsetenv.
  554. if (${?foo}) unsetenv foo >& /dev/null
  555. if (${?foo}) unset foo
  556. set output="`./conftest.sh`"
  557. if ( "$output" == "foo=bar" ) then
  558.    exit 0
  559. endif
  560. exit 1
  561. __EOF__
  562. cat <<'__EOF__' > conftest.sh
  563. #!/bin/sh
  564. # If this is really run with sh, then 1st positional arg will be "foo=bar".
  565. # If this script was executed by csh, then a shell variable "foo" will have
  566. # the value "var".
  567. set foo=bar
  568. echo "$*"
  569. __EOF__
  570. chmod 777 conftest.csh conftest.sh
  571. (csh -f ./conftest.csh) 2> /dev/null
  572. if test $? = 0 ; then
  573.    :; SEDCMD="1d"
  574. else
  575.    :; SEDCMD=""
  576. fi
  577. rm -f conftest.csh conftest.sh
  578.  
  579. if test -z "$prefix"
  580. then
  581.   echo checking for gzip to derive installation directory prefix
  582.   saveifs="$IFS"; IFS="$IFS:"
  583.   for dir in $PATH; do
  584.     test -z "$dir" && dir=.
  585.     if test $dir != . && test -f $dir/gzip; then
  586.       # Not all systems have dirname.
  587.       prefix=`echo $dir|sed 's%/[^/][^/]*$%%'`
  588.       break
  589.     fi
  590.   done
  591.   IFS="$saveifs"
  592. fi
  593.  
  594. if test -n "$prefix"; then
  595.   test -z "$exec_prefix" && exec_prefix='${prefix}'
  596.   prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  597. fi
  598. if test -n "$exec_prefix"; then
  599.   prsub="$prsub
  600. s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%\
  601. exec_prefix\\1=\\2$exec_prefix%"
  602. fi
  603.  
  604. trap 'rm -f config.status; exit 1' 1 3 15
  605. echo creating config.status
  606. rm -f config.status
  607. cat > config.status <<EOF
  608. #!/bin/sh
  609. # Generated automatically by configure.
  610. # Run this file to recreate the current configuration.
  611. # This directory was configured as follows,
  612. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  613. #
  614. # $0 $*
  615.  
  616. for arg
  617. do
  618.   case "\$arg" in
  619.     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  620.     exec /bin/sh $0 $* ;;
  621.     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  622.   esac
  623. done
  624.  
  625. trap 'rm -f Makefile; exit 1' 1 3 15
  626. CC='$CC'
  627. INSTALL='$INSTALL'
  628. INSTALL_PROGRAM='$INSTALL_PROGRAM'
  629. INSTALL_DATA='$INSTALL_DATA'
  630. CPP='$CPP'
  631. ALLOCA='$ALLOCA'
  632. OBJA='$OBJA'
  633. SEDCMD='$SEDCMD'
  634. LIBS='$LIBS'
  635. srcdir='$srcdir'
  636. DEFS='$DEFS'
  637. prefix='$prefix'
  638. exec_prefix='$exec_prefix'
  639. prsub='$prsub'
  640. EOF
  641. cat >> config.status <<\EOF
  642.  
  643. top_srcdir=$srcdir
  644. for file in .. Makefile; do if [ "x$file" != "x.." ]; then
  645.   srcdir=$top_srcdir
  646.   # Remove last slash and all that follows it.  Not all systems have dirname.
  647.   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  648.   if test "$dir" != "$file"; then
  649.     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  650.     test ! -d $dir && mkdir $dir
  651.   fi
  652.   echo creating $file
  653.   rm -f $file
  654.   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  655.   sed -e "
  656. $prsub
  657. s%@CC@%$CC%g
  658. s%@INSTALL@%$INSTALL%g
  659. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  660. s%@INSTALL_DATA@%$INSTALL_DATA%g
  661. s%@CPP@%$CPP%g
  662. s%@ALLOCA@%$ALLOCA%g
  663. s%@OBJA@%$OBJA%g
  664. s%@SEDCMD@%$SEDCMD%g
  665. s%@LIBS@%$LIBS%g
  666. s%@srcdir@%$srcdir%g
  667. s%@DEFS@%$DEFS%
  668. " $top_srcdir/${file}.in >> $file
  669. fi; done
  670.  
  671. EOF
  672. chmod +x config.status
  673. test -n "$no_create" || ./config.status
  674.  
  675.